<?php $show_toggle     = isset($show_toggle)     ? $show_toggle     : true ?>
<?php $css_error_class = isset($css_error_class) ? $css_error_class : '' ?>

  <?php $form->parseWidgets() ?>
  
	<?php echo $form->renderGlobalErrors() ?>
    <?php echo $form->renderErrors() ?>
    
  <fieldset>                    
  <?php foreach ($form->getNormalWidgets() as $name): ?>
    <?php echo $form[$name]->renderRow() ?>
  <?php endforeach; ?>
                      
  <?php foreach ($form->getHiddenWidgets() as $name): ?>
    <?php echo $form[$name]->render() ?>
  <?php endforeach; ?>
   </fieldset>
                      
<?php if ($form->hasEmbeddedForms()): ?>
  <?php foreach (array_keys($form->getEmbeddedForms()) as $name): ?>
                       
   <legend><?php echo $form[$name]->renderLabelName() ?></legend>
   <?php echo sfInflector::humanize($name) ?>
   
    <fieldset>                  
    <?php echo $form[$name]->render() ?>
    </fieldset>          
    <div>
      <label class="label popup_dialog_body_left_padded" class="label">
        <strong>* = Campos Requeridos</strong>
      </label>
    </div>
           
  <?php endforeach; ?>
<?php endif; ?>